package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor//创建有参构造器
@NoArgsConstructor//创建无参构造器
@TableName("`user`")
public class UserBean implements java.io.Serializable{
    //用户
    @TableId(type = IdType.AUTO)//主键自增
    private Integer id;
    private String phone;
    private String password;
    private String nickname;
    private String realname;
    private String idcard;
    private Integer status;
    @TableField("createtime")
    private LocalDateTime createtime;
    @TableLogic  // 标记为逻辑删除字段
    @TableField(value = "isdel")  // 映射数据库表中的isdel列
    private Integer isdel;
}
